import java.util.Arrays;
class Student{
    public String name;
    public int age;

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public String toString(){
        return "Student{name="+name+'\''+",age="+age+"}";
    }
}
public class Test {
    public static void main(String[] args) {
       String s = "*!!!!!!!!!!!hk";
       String[] str = s.split("!");
       int count = 0;
       for(int i = 0;i<str.length;i++){
           if(str[i]!= "")
               count++;
       }
        System.out.println(count);
    }
    public static void main3(String[] args) {
        String s = "abcdef?*&:><";
        System.out.println(s.length());
        String s2 = "";
        System.out.println(s2.length());
        System.out.println(s2.isEmpty());
        String s3 = null;
        System.out.println(s.toLowerCase());
       // System.out.println(s3.length());
       // System.out.println(s3.isEmpty());
    }
    public static void main2(String[] args) {
        String s1 = new String("kiku");
        String s2 = new String("kiku");
        String s3 = s1;
        System.out.println(s1.equals(s2));
        System.out.println(s1.equals(s3));
        System.out.println(s1==s2);
        System.out.println(s1);
    }
    public static void main1(String[] args) {
        String str = "abcdef";
        System.out.println(str);
        String str1 = new String("kiku is JJY");
        System.out.println(str1);
        char[] value = {'a','b','c'};
        String str2 = new String(value);
        System.out.println(str2);
        System.out.println(value);
    }
}
